<?php

namespace backend\controllers;
use Yii;
use backend\models\Admin_node;
use yii\data\Pagination;

/*
*后台首页
 */
class AdminController extends \yii\web\Controller
{
	public $layout = 'admin_main';
	function init()
    {
        $session = Yii::$app->session;
        if(empty($session->get('admin_user')))
        {
            $this->redirect('?w=login/login');
        }
    }
    public function actionIndex()
    {
        return $this->render('index');
    }

}
